package org.hongmeng.mapper;

import org.apache.ibatis.annotations.Param;
import org.hongmeng.entity.MeetingParticipant;

import java.util.List;

public interface MeetingParticipantMapper {
    int insert(MeetingParticipant participant);
    
    MeetingParticipant selectByMeetingIdAndUserId(@Param("meetingId") Long meetingId, @Param("userId") Long userId);
    
    List<MeetingParticipant> selectByMeetingId(Long meetingId);
    
    List<MeetingParticipant> selectByUserId(Long userId);
    
    int updateStatus(@Param("id") Long id, @Param("status") Integer status);
    
    int updateLeaveTime(@Param("id") Long id);
} 